import request from '@/utils/request'

// 获取概览数据
export function getOverviewData() {
  return request({
    url: '/api/datascreen/overview/',
    method: 'get'
  })
}

// 获取客户风险分布
export function getCustomerRiskDistribution() {
  return request({
    url: '/api/datascreen/customer-risk/',
    method: 'get'
  })
}

// 获取地区分布数据
export function getRegionDistribution() {
  return request({
    url: '/api/datascreen/region/',
    method: 'get'
  })
}

// 获取实时预警
export function getRealtimeAlerts() {
  return request({
    url: '/api/datascreen/alerts/',
    method: 'get'
  })
}

// 获取特征重要性
export function getFeatureImportance() {
  return request({
    url: '/api/datascreen/feature-importance/',
    method: 'get'
  })
}

// 获取增长趋势
export function getGrowthTrend() {
  return request({
    url: '/api/datascreen/growth-trend/',
    method: 'get'
  })
}

// 获取生命周期数据
export function getLifecycleData() {
  return request({
    url: '/api/datascreen/lifecycle/',
    method: 'get'
  })
}

// 获取当前用户信息
export function getCurrentUserInfo() {
  return request({
    url: '/api/auth/profile/',
    method: 'get'
  })
}

// 获取系统统计
export function getSystemStats() {
  return request({
    url: '/api/datascreen/system-stats/',
    method: 'get'
  })
}

// 获取客户洞察数据
export function getCustomerInsightData() {
  return request({
    url: '/api/datascreen/customer-insight/',
    method: 'get'
  })
}

// 获取预测监控数据
export function getPredictionMonitorData() {
  return request({
    url: '/api/datascreen/prediction-monitor/',
    method: 'get'
  })
}